import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Layout from '@/components/layout/layout'
import Index from '@/components/index/index'
import EnergyStatistics from '@/components/EnergyStatistics/EnergyStatistics'
import DataStatistics from '@/components/DataStatistics/DataStatistics'
import ShowGage from '@/components/ShowGage/ShowGage'
import SteamStatistics from '@/components/SteamStatistics/SteamStatistics'
import Shengchanjiance from '@/components/Shengchanjiance/Shengchanjiance'
import HeSuanDanYuan from '@/components/HeSuanDanYuan/HeSuanDanYuan'









Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      name: 'layout',
      component: Layout,
      redirect: '/index',
      children:[
        {
          path: 'index',
          name: 'index',
          component: Index
        }
      ]
    },
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/EnergyStatistics',
      name: 'EnergyStatistics',
      component: EnergyStatistics
    },
    {
      path: '/DataStatistics',
      name: 'DataStatistics',
      component: DataStatistics
    },
    {
      path: '/ShowGage',
      name: 'ShowGage',
      component: ShowGage
    },
    {
      path: '/SteamStatistics',
      name: 'SteamStatistics',
      component: SteamStatistics
    },
    {
      path: '/Shengchanjiance',
      name: 'Shengchanjiance',
      component: Shengchanjiance
    },
    {
      path: '/HeSuanDanYuan',
      name: 'HeSuanDanYuan',
      component: HeSuanDanYuan
    }
    
    
  ]
})
